﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>排课系统</title>
<link href="${css_ctx}/style_login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${js_ctx}/jquery-1.6.js"></script>
<script type="text/javascript" src="${js_ctx}/jquery.validate.js"></script>
<script type="text/javascript" src="${js_ctx}/proving.js"></script>
<script type="text/javascript">
			function fsubmit(obj){
			  if (obj.username.value==""){alert("对不起,你还没有输入登陆账号！");obj.username.focus();return false;} 
			  if (obj.password.value==""){alert("对不起,你还没有输入登陆密码！");obj.password.focus();return false;} 
			  obj.submit(); 
			}
			
            $(function(){
            
                $("#username").validate({
                    valid: function(val){
                        return val != "";
                    },
                    errorMessage: function(val){
                        return "不能为空";
                    },
                    appendCompletionIcon: true
                });
                
               $("#password").validate({
                    valid: function(val){
                        return val != "";
                    },
                    errorMessage: function(val){
                        return "不能为空";
                    },
                    appendCompletionIcon: true
                });
              
            });
            
</script>
</head>

<body style="background-color:#F2F2F2;">
<!-- Header -->
<div id="header_login">
  <div class="logo"><img src="${img_ctx}/logo.png" width="352" height="63" alt="西南航空专修学院排课系统" /></div>
    <ul class="menu">
	  <li class="current"><a href="#">登录</a></li>
	  <li><a href="${ctx}/account.do?cmd=register">用户注册</a></li>
	</ul>
  <div class="clear"></div>
</div>
<!-- End of Header -->
<!-- main -->
<div id="main_login">
  <div class="content">
    <h3>登录排课系统</h3>
    <!-- 提示信息 -->	
      <c:if test="${empty msg}">
        <div class="box box-info">请输入您的账号和密码！</div>
      </c:if>
      
	  <c:if test="${!empty msg}">
	    <div class="box ${msgrank}">${msg}</div>
	    <c:remove var="msg" scope="session"/>
	  </c:if>
	<!-- 提示信息  end-->	
    
    <form name="form1" id="form1" method="post" action="${ctx}/account.do?cmd=login">
      <input type="hidden" id="" />
    <p>
    <label for="username"><font>*</font>用户名：</label><br/>
    <input type="text" id="username" class="full" value="" name="username"/>
    </p>
    <p>
    <label for="password"><font>*</font>密码：</label><br/>
    <input type="password" id="password" class="full" value="" name="password"/>
    </p>
    
    <p>
    <input type="checkbox" id="remember" class="" value="1" name="remember"/>
    <label class="choice" for="remember">记住我？</label>
    </p>
    
    <p>
    <input type="submit" class="btn btn-green big1" value="登录"  onmousedown="return fsubmit(form1);"/>
     &nbsp; <a href="#" >忘记密码？</a>  <a href="#">需要帮助？</a>
    </p>
    </form>
  </div>
</div>
<!-- End of main -->
<!-- footer -->
<div id="footer">
    <%@ include file="web/base/footer.jsp"%>
</div>
<!-- End of footer -->
</body>
</html>
